pick

fun pick(x: Float, y: Float): PickedObjectList

Determines the WorldWind objects displayed at a screen point. The screen point is interpreted as coordinates in Android screen pixels relative to this View.
If the screen point intersects any number of WorldWind shapes, the returned list contains a picked object identifying the top shape at the screen point. This picked object includes the shape renderable (or its non-null pick delegate) and the WorldWind layer that displayed the shape. Shapes which are either hidden behind another shape at the screen point or hidden behind terrain at the screen point are omitted from the returned list. Therefore, if the returned list contains a picked object identifying a shape, it is always marked as 'on top'.
If the screen point intersects the WorldWind terrain, the returned list contains a picked object identifying the associated geographic position. If there are no shapes in the WorldWind scene between the terrain and the screen point, the terrain picked object is marked as 'on top'.
This returns an empty list when nothing in the WorldWind scene intersects the screen point, when the screen point is outside this View's bounds, or if the OpenGL thread displaying the WorldWindow's scene is paused (or becomes paused while this method is executing).

Return

a list of WorldWind objects at the screen point

Parameters

x

the screen point's X coordinate in Android screen pixels

y

the screen point's Y coordinate in Android screen pixels